<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    setTimeout(function () {
        console.log(1)
    },1000)

    for(var i =0;i<10000;i++){
        console.log(2)
    }
</script>
</html>